package com.linkwechat.common.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@ConfigurationProperties(prefix = "minio")
@Component
@Data
public class MinoConfig implements IOSSConfig {
    /**
     * 访问地址
     */
    private String endpoint;
    /**
     * 内网ip
     */
    private String endpointInnerIp;
    /**
     * 是否内网 0否1是
     */
    private int isInner;
    /**
     * 访问key
     */
    private String accessKey;
    /**
     * 秘钥key
     */
    private String secretKey;
    /**
     * 桶占位符
     */
    private String bucketParam;
    /**
     * bucket权限-只读
     */
    private String readOnly;
    /**
     * bucket权限-只写
     */
    private String writeOnly;
    /**
     * bucket权限-读写
     */
    private String readWrite;

}
